import {get,post} from "./http";


// =======================歌手相关========================
// 查询所有歌手
export const getAllSinger = () => get(`singer/allSinger`);

// ======================歌曲相关==========================
// 根据歌手Id 查询
export const singerOfSingerId = (id) => get(`song/singer/detail?singerId=${id}`);
// 根据歌曲id查询查询歌曲对象
export const songOfSongId = (id) => get(`song/detail?songId=${id}`)

export const likeSongOfName = (keywords) => get(`song/likeSongOfName?songName=${keywords}`)
// ======================歌单相关==========================

export const getAllSongList  = () => get(`songList/allSongList`);

// =======================歌单的歌曲相关========================

export const listSongDetail = (songListId) => get(`listSong/detail?songListId=${songListId}`);

// =======================用户相关========================
// 查询所有歌手
export const getAllConsumer = () => get(`consumer/allConsumer`);